package com.elephant.leil.generator.model;

/**
 * 列信息
 */
public class Column {

    /**
     * 原始列名称
     */
    String originalName;

    /**
     * 列名称
     */
    String name;

    /**
     * 首字母大写列名称
     */
    String upperStartName;

    /**
     * 列注释
     */
    String comment;

    /**
     * 列类型
     */
    String type;

    /**
     * java类型
     */
    String javaType;

    /**
     * 字段是否为空
     */
    boolean nullable;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getUpperStartName() {
        return upperStartName;
    }

    public void setUpperStartName(String upperStartName) {
        this.upperStartName = upperStartName;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isNullable() {
        return nullable;
    }

    public void setNullable(boolean nullable) {
        this.nullable = nullable;
    }

    @Override
    public String toString() {
        return "Column{" +
                "originalName='" + originalName + '\'' +
                ", name='" + name + '\'' +
                ", upperStartName='" + upperStartName + '\'' +
                ", comment='" + comment + '\'' +
                ", type='" + type + '\'' +
                ", javaType='" + javaType + '\'' +
                ", nullable=" + nullable +
                '}';
    }
}
